package pattern.mediator;

// 房主
public class HouseOwner extends Person {
    public HouseOwner() {
    }
    public HouseOwner(String name, MediatorCompany mediatorCompany) {
        super(name, mediatorCompany);
    }
    /**
     * @Author WLJ
     * @Description //TODO 联络方法
     * @Date 11:37 2023/3/10
     * @Param [message]
     * @return void
     **/
    public void connection(String message) {
        mediatorCompany.connection(this, message);
    }
    /**
     * @Author WLJ
     * @Description //TODO 获取消息
     * @Date 11:39 2023/3/10
     * @Param [message]
     * @return void
     **/
    public void getMessage(String message) {
        System.out.println("房主" + name + "获取到消息：" + message);
    }
}
